package com.sihai.ehr.service;

import com.sihai.core.Limit;
import com.sihai.core.LimitedList;
import com.sihai.core.Sorter;
import com.sihai.ehr.model.biz.DutyProxy;
import com.sihai.ehr.model.biz.DutyProxyAuditing;
import com.sihai.ehr.model.sys.Organization;

import java.util.List;

/**
 * @author wxn
 * @since 12-6-16 14:24
 */
public interface DutyProxyService {

    DutyProxy get(Long id);

    LimitedList<DutyProxy> search(DutyProxy dutyProxy, Limit limit, Sorter sorter);

    void save(DutyProxy dutyProxy);

    void remove(String ids);

    LimitedList<DutyProxy> findByOrganization(Long organizationId, Limit limit, Sorter sorter);

    List<List<DutyProxyAuditing>> findDutyProxyAuditings(Long id, int who);

    void saveDutyProxyAuditing(DutyProxyAuditing auditing, int who);

    //创建一个审核流程
    void saveDutyProxyAuditingProcess(DutyProxy proxy, int who);

    DutyProxyAuditing getDutyProxyAuditing(Long id);
}
